package com.mvc_template_app.dao;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Component;

@Component
public abstract class GenericDao extends HibernateDaoSupport {

    @Autowired
    public void initializeDependencies(SessionFactory sessionFactory) {
        setSessionFactory(sessionFactory);
    }
}